print tail of log if fail
authorGert Wollny <gewo@debian.org>
Mon, 6 Aug 2018 12:42:20 +0000 (14:42 +0200)
committerGert Wollny <gewo@debian.org>
Mon, 6 Aug 2018 12:42:20 +0000 (14:42 +0200)
debian/.gitlab-ci.yml

index 30e608c3d9edd3ad286aa96ab43ceca89c4b0655..22a021b581ba22a5180a4dd28645ec711f31a330 100644 (file)
@@ -11,6 +11,5 @@ build:
     - git checkout master 
     - git pull 
     # silence build to not exceed build log size of gitlab-ci
-    - gbp buildpackage -uc -us 2>&1 >../build.log
-    - tail -n 100 ../build.log
+    - gbp buildpackage -uc -us 2>&1 >../build.log || tail -n 100 ../build.log